package johnkkk.com.system_k;

import java.util.Arrays;
import java.util.List;

/**
 * @Author: clm
 * @Date: 2018-11-09
 * 光照系统
 */

public class LightSystem {
    //点光源
    private List<PointLight> mPointLights;
    public static class PointLight{
        //光源位置
        public float[] mPos;
        //光源颜色
        public float[] mColor;

        public PointLight(float[] pos, float[] color) {
            mPos = pos;
            mColor = color;
        }

        public float[] getPos() {
            return mPos;
        }

        public void setPos(float[] pos) {
            mPos = pos;
        }

        public float[] getColor() {
            return mColor;
        }

        public void setColor(float[] color) {
            mColor = color;
        }

        @Override
        public String toString() {
            return "PointLight{" +
                    "mPos=" + Arrays.toString(mPos) +
                    ", mColor=" + Arrays.toString(mColor) +
                    '}';
        }
    }
}
